<?php

class ModelNameListGenerator
{
  static public function generate()
  {
    $models = sfYaml::load(sfConfig::get('sf_config_dir').'/doctrine/schema.yml');
    $ret = array();
    foreach ($models as $key => $val)
    {
      preg_match('/^[A-Z]/', $key) and $ret[] = $key;
    }
    return $ret;
  }
}
